<template>
  <div>
   <table border="1" width="700" style="border-collapse: collapse">
      <caption>
        购物车
      </caption>
      <thead>
        <tr>
         <slot name="head"></slot>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(item, index) in goodList" :key="index">
         <slot name="main" :item="item" :index="index"></slot>
        </tr>
      </tbody>
      <tfoot>
        <tr>
         <slot name="foot"></slot>
        </tr>
      </tfoot>
    </table>
  </div>
</template>

<script>
export default {
props:{
    goodList:{
        type:Array
    }
}
}
</script>

<style>

</style>